package com.haohope.framework.redis.autoconfigure;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;

import com.haohope.framework.redis.FastJsonRedisTemplate;
import com.haohope.framework.wb.buffer.RedisBuffer;
@Configuration
public class FrameworkRedisAutoConfigure {
	@Bean
	public FastJsonRedisTemplate fastJsonRedisTemplate(RedisConnectionFactory connectionFactory) {
		return new FastJsonRedisTemplate(connectionFactory);
	}
	@Bean
	public RedisBuffer redisBuffer() {
		return new RedisBuffer();
	}
}
